package fristphase.day9_13;

public class 基本类型与包装类型 {
    public static void main(String[] args) {
        int max = Integer.MAX_VALUE;
        int min = Integer.MIN_VALUE;
        System.out.println("最大"+max+"最小"+min);
        long max1 = Long.MAX_VALUE;
        long mix1 = Long.MIN_VALUE;
        String str = "18";
        int num = Integer.parseInt(str);
        int num2 = Integer.parseInt(str);
        System.out.println(num == num2);//true
        System.out.println(num);
        String str1 = "3.1415926535";
        double num1 = Double.parseDouble(str1);
        System.out.println(num1);
        Integer integer = new Integer(2);
        Integer integer1 = new Integer(2);
        System.out.println(integer == integer1);//false
        System.out.println(integer.equals(integer1));//true
        Integer integer2 = Integer.valueOf(4);
        Integer integer3 = Integer.valueOf(4);
        System.out.println(integer2 == integer3);//true
        System.out.println(integer2.equals(integer3));//true
    }
}
